/**
 * @author liudm
 */
function createfeesline( divname , data)
{
	var dom = document.getElementById(divname);
	var myChart = echarts.init(dom);
	var app = {};
	option = null;
	option = {
	    //title: {
	    //    text: '收费统计',
	    //    subtext: '',
	    //    x:'center'
	    //},
	    tooltip: {
	        trigger: 'axis'
	    },
	    //legend: {
	    //    data:['最高值','平均值','最低值']
	    //},
	    toolbox: {
	        show: false,
	        feature: {
	            dataZoom: {
	                yAxisIndex: 'none'
	            },
	            dataView: {readOnly: false},
	            magicType: {type: ['line', 'bar']},
	            restore: {},
	            saveAsImage: {}
	        }
	    },
	    xAxis:  {
	        type: 'category',
	        boundaryGap: false,
	        axisLabel: {        
                                show: true,
                                textStyle: {
                                    color: '#fff',
                                    fontSize:'12'
                                }
                            },
	        data : data.feeline_dichan.xAxis
	    },
	    yAxis: {
	        type: 'value',
	            axisLine: {show:false},
				axisTick: {show:false},
				axisLabel:{show:false},
				splitLine: {
                                show: false, 
                                //  改变轴线颜色
                                lineStyle: {
                                    // 使用深浅的间隔色
                                    color: ['red']
                                }                            
                 }
	    },
	    series: [
	        {
	            name:'地产',
	            type:'line',
	            showAllSymbol:true,
	            radius : '70%',
	            center: ['50%', '60%'],
	            color:'#4F81BD',
	            label: {
	                normal: {
	                    show: true,
	                    position: 'top',
	                    color:'#4F81BD',
	                }
            	},
            	itemStyle : {  
                                normal : {  
                                    lineStyle:{  
                                        color:'#4F81BD',
                                        width: 3  
                                    } 
                                },
                                showAllSymbol:true
                            },
	            data:data.feeline_dichan.series
	        },
	        {
	        	name:'校园',
	        	color:'#C0504D',
	            type:'line',
	            label: {
	                normal: {
	                    show: true,
	                    position: 'top',
	                    color:'#C0504D',
	                }
            	},
            	itemStyle : {  
                                normal : {  
                                    lineStyle:{  
                                        color:'#C0504D',
                                        width: 3    
                                    }
                                }  
                            },
	            data:data.feeline_xiaoyuan.series
	        },
	        {
	        	name:'共建',
	            type:'line',
	            color:'#9BBB59',
	            label: {
	                normal: {
	                    show: true,
	                    position: 'bottom',
	                    color:'#9BBB59',
	                }
            	},
            	itemStyle : {  
                                normal : {  
                                    lineStyle:{  
                                        color:'#9BBB59',
                                        width: 3    
                                    }
                                }  
                            },
	            data:data.feeline_gongjian.series
	        }
	    ]
	};
	;
	if (option && typeof option === "object") {
	    myChart.setOption(option, true);
	}
} 	